# This is a comment line, a new feature 15Aug2007 allowed by GCMS-QQQ code.
# Empty lines are also allowed.
# Section names and the count and order of parmeter names within each section
# must match the readQQQDefaults() code exactly.
# 10Aug2007 KK  (Knute Kresie) Started with a file copied from BalaurBB1
#           circa 17May2007
# 15Aug2007 KK   Modified for testing new readQQQDefaults() with minimal
#           changes (ugly).
#           Added SourceHeaterMaxDriveDAC and SourceHeaterTimeoutDAC.
# 17Oct2007 KK  Notes this file was apparently modified Sep  7 14:25 2007
#           and StatusMask* were all changed to all zeros (all faults masked).
# 17Oct2007 KK  changed the StatusMask* back to values specified by RR.
# 25Oct2007 KK  Changed the StatusMask* to all zeros (all faults masked)
#           until the version G.00.09 fault sub-system is satisfactory.
# 06Feb2008 KK  To improve Collision Cell Flow Control, per Randy,
#           changed Zone13 (Nitrogen flow control) to P=5%,I=60%, and
#           changed Zone15 (Helium flow control)   to P=5%,I=60%, and
#           left the D terms at 0%.  Added to "Section DiagUI":
#           (requires qqqServer.G15 or later)
#           "Zone13MaxDriveDAC" for CCell N2  flow control max drive
#           "Zone15MaxDriveDAC" for CCell He2 flow control max drive
# 07Feb2008 KK  Changed "QuadDriver1" and "QuadDriver2" from 1 to 0 to
#           stop firmware readQQQDefaults() doing special case (QUAD_DRIVER_B)
#           gain inversion (gain *= -1.0) for e_MS1QuadOffSet, because for
#           Balaur we are implementing a new 
#           DACinput=f(requested Quad DC Offset) transform.
# 02May2008 KK  (on BalaurLP1) Changed the Zone5 (Filament Current)
#           PID values to 0.24%,13%,0% per request from Randy.
# 08JUL2008 KK  Change StatusMask1...4 from all zeros to realistic fault mask
#           values specified by Randy 07Mar2008.  Also eliminate distracting
#           carriage returns in this file.  This is Linux, not Windows!
# 09JUL2008 KK  Changed Section QuadFreq default values MS1Freq,MS2Freq
#           from 996.1,1058.8 to more nominal default values
#            of 1000.0,1000.0 (KHz) for this (Balaur) product.
#           The effective quad frequency in either quad can be set by
#           the "set3qquadfreq" or "dip" backdoor commands that create/update
#           qqq/MSxQuadFreq.txt (x=1,2) files.  If a MSxQuadFreq.txt file
#           does not exist, the default MSxFreq value in this file is used.
# 01Sep2008 KK  Changed StatusMask1 and StatusMask3 to disable newly-defined
#           Fault Status Register#1, bit#18 ("Quad1 RFPA Fan Fault") and
#           Fault Status Register#3, bit#18 ("Quad2 RFPA Fan Fault"), until
#           (PR builds?) those faults should be enabled.  These changes were
#           initiated by Randy Roushall 29Aug2008.
# 02Nov2008 KK  Changed thermal zone (source=Zone2, quad1=Zone3, quad2=Zone11)
#           PID's to implement recent optimization of them by Randy Roushall.
#           Also changed SourceHeaterTimeoutDAC to 119 (40 min) per Randy.
#           Apparently the other zone timeouts are specified in firmware only.
# 08Nov2008 KK  Merged in changes by Congshi Huang for qqqServer G.7000.007I
#           i.e. corrected spelling of "MininumCycleTime(msec)"  
#                                   to "MinimumCycleTime(msec)" and
#           changed values for it and MassChangeWait and added gMADLY elements.
# 10Nov2008 KK  Changed MassChangeWait(msec)   1.0 to 0.5, and
#                       MinimumCycleTime(msec) 2.0 to 1.0  per Tom Doherty.
# 20Nov2008 KK  Added "MS1HeaterTimeoutDAC" and "MS2HeaterTimeoutDAC" and
#           set them as well as "SourceHeaterTimeoutDAC"
#           to (70/0.336)=208 (70 min) per 04Nov2008 e-mail from Randy.
# 24Feb2009 KK  Per advice from Randy Roushall, I changed the PID's to zero for
#           all zones not used by Balaur to prevent those zone controller
#           elements from "cranking up".  Therefore we now have ZERO PID's for
#           Zones 1,4,6,8,9,10,12,14,16 and leave UNCHANGED the
#           Zones 2,3,11 (Source, MS1, MS2 Heaters), 5,7 (Filament Current),
#             and 13,15 (Collision Cell N2 and He experiments).
# 25Feb2009 KK  Removed empty comment ("#") lines from [Section ZonePIDs]
#           that were apparently causing problem with readQQQDefaults().

   
[Section QuadFreq]
MS1Freq  1000.0
MS2Freq  1000.0

[Section QuadPol]
MS1QuadPol 1
MS2QuadPol 1

[Section Faultmask]
# New fault masks by Randy Roushall, 07Mar2008
#   No pump fan fault or CC cable fault enabled
StatusMask1  0x438B80FF
StatusMask2  0x0731E92F
StatusMask3  0x0003D0FF
StatusMask4  0x07108C09
#StatusMask1  0x00000000
#StatusMask2  0x00000000
#StatusMask3  0x00000000
#StatusMask4  0x00000000

[Section ZonePIDs]
Zone1ITerm 0
Zone2ITerm 9.7
Zone3ITerm 21.9
Zone4ITerm 0
Zone5ITerm 13.0
Zone6ITerm 0
Zone7ITerm 22.0
Zone8ITerm 0
Zone9ITerm 0
Zone10ITerm 0
Zone11ITerm 21.9
Zone12ITerm 0
Zone13ITerm 60.0 
Zone14ITerm 0
Zone15ITerm 60.0
Zone16ITerm 0
Zone1PTerm 0
Zone2PTerm 73.0
Zone3PTerm 98.0
Zone4PTerm 0
Zone5PTerm 0.24
Zone6PTerm 0
Zone7PTerm 3.4
Zone8PTerm 0
Zone9PTerm 0
Zone10PTerm 0
Zone11PTerm 98.0
Zone12PTerm 0
Zone13PTerm 5.0
Zone14PTerm 0
Zone15PTerm 5.0
Zone16PTerm 0
Zone1DTerm 0
Zone2DTerm 26.0
Zone3DTerm 29.0
Zone4DTerm 0
Zone5DTerm 0
Zone6DTerm 0
Zone7DTerm 0
Zone8DTerm 0
Zone9DTerm 0
Zone10DTerm 0
Zone11DTerm 29.0
Zone12DTerm 0
Zone13DTerm 0
Zone14DTerm 0
Zone15DTerm 0
Zone16DTerm 0

[Section MassFilterCoeffs]
Coeff0 -0.010176
Coeff1 -0.038809
Coeff2 -0.035198
Coeff3 0.086944
Coeff4 0.295374
Coeff5 0.403729
Coeff6 0.295374
Coeff7 0.086944
Coeff8 -0.035198
Coeff9 -0.038809
Coeff10 -0.010176

[Section DiagUI]
UseDiagUI 0
CCGasCtl  0
CCHWType  1
SourceHeaterMaxDriveDAC 255
#                       208 => 70 min.
SourceHeaterTimeoutDAC  208
MS1HeaterTimeoutDAC     208
MS2HeaterTimeoutDAC     208
# Need MS1HeaterType=1 below to enable MaxDrive and Timeout initializations
MS1HeaterType 1
MS2HeaterType 1
CCGasDefault 360
QuadDriver1  0
QuadDriver2  0
#                   76 => 30% per Randy 13Aug2007
FilamentMaxDriveDAC 76
# FilamentFaultTimeoutDAC not implemented here because it is not currently
# (15Aug2007) adjustable.  The hardware uses a constant fault timeout value 
# of approximately 10 seconds per Randy, 15Aug2007.  KK.
# 
# Next are max drive values for Zone13 (CCell N2 flow) and Zone15 (CCell He2 Flow)
#                  120 => approx 50% per Randy, 01Feb2008.
Zone13MaxDriveDAC  120
Zone15MaxDriveDAC  120

[Section Delays]
BaselineInterval(min) 10.0
MassChangeWait(msec)   0.5 
MinimumCycleTime(msec) 1.0
gMADLY1Ua 900
gMADLY1Ub 1.8
gMADLY1Da 850
gMADLY1Db 1.2
gMADLY2Ua 700
gMADLY2Ub 1.23
gMADLY2Da 700
gMADLY2Db 1.5
